package com.shusl.controller;

import com.shusl.pojo.User;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;

@RestController
public class HelloController {
     @GetMapping("/hello")
    public String hello(){
        return "hello shusl";
    }

    @RequestMapping("/getUser")
    public User getUser(){
        return new User();
    }

    @ApiOperation("狂神的接口")
    @PostMapping("/shusl")
    @ResponseBody
    public String shusl(@ApiParam("这个名字会被返回")String username){
        return username;
    }
}
